/*
 * @lc app=leetcode.cn id=1935 lang=typescript
 *
 * [1935] 可以输入的最大单词数
 */

// @lc code=start
function canBeTypedWords(text: string, brokenLetters: string): number {
    return text.split(" ").filter((i) => {
        return i.split("").every((char) => !brokenLetters.includes(char));
    }).length;
}
// @lc code=end
